registrykey.htmlHTMLudog%—πùΔ§πùΔ§ÅÅU} Monkeybread Realbasic plugin - Documentation - RegistryKey

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class RegistryKey

class, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Gives you access to a Windows Registry Key.

CreateKey(name as string) as RegistryKey

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Creates a new subkey.
Notes: If the key is allready present it's just opened.

Delete as boolean

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Deletes the current key.
Notes:
Windows 95: The Delete function deletes a subkey and all its descendants.
Windows NT: The Delete function deletes the specified subkey. The subkey to be deleted must not have subkeys.

Flush

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Writes all the attributes of the specified open key into the registry.

Item(index as integer) as RegistryKey

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the key at the specified index.

ItemCount as integer

property, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the count of subkeys.
Example:
c=key.ItemCount
for i=1 to c
// do something
next
Notes: This property calls a System function to get the value. So save it in a local variable instead of calling it in a for loop. See the example.

name as string

property, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the name of the Key.

Value(index as integer) as RegistryValue

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the value at the specified index.

ValueCount as integer

property, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the count of values.
Example:
c=key.ValueCount
for i=1 to c
// do something
next
Notes: This property calls a System function to get the value. So save it in a local variable instead of calling it in a for loop. See the example.

ValueItem(name as string) as RegistryValue

method, Windows Registry Mo, 15. Jul 2002
Mac OS Classic: Does nothing. Mac OS Carbon: Does nothing. Windows: Works.
Function: Returns the value item with the specified name.
Notes:
The value must not exists. So use this function to make a new key.
Use an empty name (e.g. "") for the default key value.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ